<?php

require_once('inc.config.php');

$useTemplate   = 'renthouse_list.html';

$page = new QuickSkin ($useTemplate );

template_ini($page);

//搜索条件
$condition = array(
	"price" => $_REQUEST["r_price"],
	"isfull" => $_REQUEST["r_isfull"],
	"floor" => $_REQUEST["r_floor"],
	"plaza"  => $_REQUEST["r_plaza"],
	"decoration" => $_REQUEST["r_decoration"],
	"ispublic" => 1
);


if($_REQUEST["r_type"]==""||!isset($_REQUEST["r_type"])){$_REQUEST["r_type"]=1;}
if($_REQUEST["r_page"]==""||!isset($_REQUEST["r_page"])){$_REQUEST["r_page"]=1;}

$page->assign("indexcls" , "bfont");

$goldlist = $myAgent->getGoldenList();
$result = $myHouse->getSearchRentList($condition , $_REQUEST["r_type"] , $_REQUEST["r_page"]);
$totalnum = $myHouse->getSearchPage2($condition);
$tp = ceil($totalnum/__search_rhouse_num__);
$pl = $myHouse->getSearchPlaza();


$page->assign("goldlist" , $goldlist);

$page->assign("rentlist" , $result);
$page->assign("total" , $totalnum);
$page->assign("totalpage" ,$tp);
$page->assign("plazalist" , $pl);

$page->assign($_REQUEST);
$page->assign("indexcls" , "nv_current");
$page->output();


ob_end_flush();

?>